package cn.itcast.eduservice.mapper;

import cn.itcast.eduservice.entity.EduCourse;
import cn.itcast.eduservice.entity.frontvo.CourseWebVo;
import cn.itcast.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Duanzihuang
 * @since 2020-05-19
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    // 根据id查询最终发布的课程信息
    public CoursePublishVo getPublicCourseInfo(String courseId);

    // 根据课程id，编写sql语句查询课程信息
    CourseWebVo getBaseCourseInfo(String courseId);
}
